package com.tlxch.server.teacher.impl;

import com.tlxch.mapper.SHabitMapper;
import com.tlxch.pojo.SHabit;
import com.tlxch.server.teacher.TSHabitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class TSHabitServiceImpl implements TSHabitService {
    @Autowired
    SHabitMapper sHabitMapper;

    public void add(SHabit sHabit) {
        sHabit.setShCreatetime(LocalDateTime.now());
        sHabitMapper.insert(sHabit);
    }
}
